package com.xinmao.quantitative.api;

import com.xinmao.quantitative.api.model.EastMoneyZhAHisResponse;
import com.xinmao.quantitative.api.model.LinesData;
import com.xinmao.quantitative.api.model.MinLinesData;
import com.xinmao.quantitative.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Title: StockData
 * @Author: XYe13
 * @Date: 4/30/2024 13:24
 * @Description: <通过akTools 获取股票数据>
 */
@FeignClient(name = "east-money", url = "https://push2his.eastmoney.com/api",configuration = FeignConfig.class)
public interface EastMoneyDataApi {

    @GetMapping("/qt/stock/kline/get")
    EastMoneyZhAHisResponse<LinesData> getDayKline(@RequestParam Map<String,Object> request);

    @GetMapping("/qt/stock/trends2/get")
    EastMoneyZhAHisResponse<MinLinesData> getMinKline(@RequestParam Map<String,Object> request);


    @GetMapping("/qt/stock/kline/get")
    String getDayKline1(@RequestParam Map<String,Object> request);
}
